package com.shop.service;

import com.shop.pojo.Employee;
import com.shop.pojo.EmployeeCustom;

import java.util.List;

public interface EmployeeService {

	// 根据员工帐号查找员工
	Employee findEmployeeByName(String name);

	// 根据主键查找员工
	Employee findEmployeeManager(long id);

	List<Employee> findUsers();

	List<EmployeeCustom> findUserAndRoleList();

	void updateEmployeeRole(Integer roleId, String userId);

	List<Employee> findEmployeeByLevel(int level);

	List<Employee> findEmployeeList();

	void saveEmployee(Employee employee);

	void deleteEmployee(Long id);

	Employee findEmployee(Long id);

	void updateEmployee(Employee employee);

	Employee findEmployeeManagerByManagerId(Long managerId);

	void updateUserRole(String roleId, String userId);
}
